<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>锐信内容管理系统-机顶盒管理</title>
<%@include file="/WEB-INF/pages/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/jquery.fancybox.css" /> 
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/list.css" /> 
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/datepicker/datepicker.css" /> 
<script type="text/javascript" src="${ctx}resources/js/table.js"></script>
<script type="text/javascript" src="${ctx}resources/js/page.js"></script>
<script type="text/javascript" src="${ctx}resources/js/datepicker/wdatepicker.js"></script>
<script type="text/javascript" src="${ctx}resources/js/jquery.fancybox-1.2.1.pack.js"></script>
</head>
<style>
	.STYLE1 a {
	   text-decoration: none;
	   color: #ffffff;
	}
	.tbl_list a {
	  text-decoration: none;
	  color: #000000;
	}
	 a:hover {color: #0000FF;}
    .limit{ color:red;}
    .normol{ color:#3B6375;}
</style>
<script type="text/javascript">
	function deleteBox(id){
		if(!confirm('删除将无法恢复,确定要删除吗？')){
			return ;
		}
		var pageNo = $("#pageNo").val();
		$.ajax({
			  type: 'POST',
			  url:"${ctx}box/delete.htm",
			　 data:{pageNo:pageNo,ids:id},
			  success: function(data){
				  alert(data);
				  window.location.reload();
			  }
			});
	}
</script>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<form id="mainForm" action="${ctx}box/list.htm" method="POST" name="mainForm">
	<input type="hidden" name="pageNo" id="pageNo" value="${page.pageNo}" />
	  <tr>
	    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	          <tr>
	            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
	              <tr>
	                <td width="6%" height="19" valign="bottom"><div align="center"><img src="${ctx}resources/images/tb.gif" width="14" height="14" /></div></td>
	                <td width="94%" valign="bottom"><span class="STYLE1">机顶盒基本信息列表</span></td>
	              </tr>
	            </table></td>
	            <td><div align="right"></div></td>
	          </tr>
	        </table></td>
	      </tr>
	    </table></td>
	  </tr>
	  <tr>
	    <td><table width="100%" border="0" cellpadding="0" class="tbl_list"  cellspacing="1">
	    	<tr style="padding-top: 2px">
				<th class="STYLE19" colspan="15">
				<span style="padding-left: 20px">厂商:<input type="text" name="filter_LIKES_manufacturer" value="${param['filter_LIKES_manufacturer']}"> </span>
					<span style="padding-left: 20px">状态: <select name="filter_EQB_state">
							<option value=""> 全部 </option>
							<option value="1" ${param['filter_EQB_state']=='1'?"selected":""}> 正常 </option>
							<option value="0" ${param['filter_EQB_state']=='0'?"selected":""}> 限制 </option>
						</select> </span>
					<span style="padding-left: 20px">注册时间:<input type="text" name="filter_GED_ctime" value="${param['filter_GED_ctime']}"  class="Wdate" type="text" readonly="readonly" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">-<input type="text" name="filter_LED_ctime" value="${param['filter_LED_ctime']}"  class="Wdate" type="text" readonly="readonly" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"></span>
					<span style="padding-left: 20px"><input type="button" class="button"
							name="" onclick="search();" style="cursor: pointer;" value="查询"> </span>
			</tr>
	      <tr>
	        <th bgcolor="d3eaef" class="STYLE6"><div align="center">
	          <input type="checkbox" name="" id="checkall" />
	        </div></th>
	        <th bgcolor="d3eaef" class="STYLE6"><div align="center"><span >序列号</span></div></th>
	        <th bgcolor="d3eaef" class="STYLE6"><div align="center"><span >厂商</span></div></th>
	        <th bgcolor="d3eaef" class="STYLE6"><div align="center"><span >机顶盒ID</span></div></th>
	        <th bgcolor="d3eaef" class="STYLE6"><div align="center"><span >状态</span></div></th>
	        <th bgcolor="d3eaef" class="STYLE6"><div align="center"><span >添加时间</span></div></th>
	      </tr>
	      <c:forEach items="${page.result}" var="box">
		      <tr>
		        <td ><div align="center">
		          <input type="checkbox" name="objId" id="checkbox2" value="${box.id}"/>
		        </div></td>
		        <td ><div align="center"><span>${box.id}</span></div></td>
		        <td ><div align="center">${box.manufacturer}</div></td>
		        <td ><div align="center">${box.boxid}</div></td>
		        <td ><div align="center">${box.state?"正常":"限制"}</div></td>
		        <td ><div align="center"><fmt:formatDate value="${box.ctime}" pattern="yyyy-MM-dd HH:mm:ss"/></div></td>
		      </tr>
	      </c:forEach>
	    </table></td>
	  </tr>
	  <tr>
	    <td height="30"><%@include file="/WEB-INF/pages/common/footer.jsp"%></td>
	  </tr>
  </form>
</table>
</body>
</html>
